/*
 *    Copyright (c) 2018-2025, daoism All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: daoism
 */

package com.mkh.st.admin.api.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.math.BigDecimal;

/**
 * 业务配置表
 *
 * @author daoism code generator
 * @date 2021-09-22 15:33:14
 */
@Data
@TableName("sys_business_set")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "业务配置表")
public class SysBusinessSet extends Model<SysBusinessSet> {
private static final long serialVersionUID = 1L;

    /**
     * 业务配置主键
     */
    @TableId
    @ApiModelProperty(value="业务配置主键")
    private Long id;
    /**
     * 业务站点id
     */
    @ApiModelProperty(value="业务站点id")
    private Long siteId;
    /**
     * 客户收货差异面免审值
     */
    @ApiModelProperty(value="客户收货差异面免审值")
    private BigDecimal receiptValueLimit;
    /**
     * 客户下单截止时间
     */
    @ApiModelProperty(value="客户下单截止时间")
    private String saleEndTime;
    /**
     * 现场采购单默认处理仓库
     */
    @ApiModelProperty(value="现场采购单默认处理仓库")
    private Long defaultWarehouse;
    /**
     * 0默认排序(商品添加顺序)1按品类排序2按首字母排序
     */
    @ApiModelProperty(value="0默认排序(商品添加顺序)1按品类排序2按首字母排序")
    private Integer skuSortType;
    /**
     * 协议价到期后定价规则:0沿用已到期的协议价,1使用客户类型价,2使用销售指导价
     */
    @ApiModelProperty(value="协议价到期后定价规则:0沿用已到期的协议价,1使用客户类型价,2使用销售指导价")
    private Integer priceRule;
    /**
     * 客户屏蔽商品允许后台下单 0否1是
     */
    @ApiModelProperty(value="客户屏蔽商品允许后台下单 0否1是")
    private Boolean blockSkuOrder;
    /**
     * 业务日切时间
     */
    @ApiModelProperty(value="业务日切时间")
    private String businessSwitchTime;
    /**
     * 价格异动涨跌幅标记，1开0关
     */
    @ApiModelProperty(value="价格异动涨跌幅标记，1开0关")
    private Boolean priceChangeFlag;
    /**
     * 价格异动涨跌幅值
     */
    @ApiModelProperty(value="价格异动涨跌幅值")
    private BigDecimal priceChangeValue;
    /**
     * 采购单生成时间开关0关，1开
     */
    @ApiModelProperty(value="采购单生成时间开关0关，1开")
    private Boolean purchaseCreateFlag;
    /**
     * 采购单生成时间
     */
    @ApiModelProperty(value="采购单生成时间")
    private String purchaseTime;
    /**
     * 退货必须强制关联采购单开关:0关1开
     */
    @ApiModelProperty(value="退货必须强制关联采购单开关:0关1开")
    private Boolean returnRelationPurchase;


	@ApiModelProperty(value="商品供应分配时抵扣可用库存开关0关1开")
	private Boolean purposeFlag;

    /**
     * 客户名称显示规则:0只显示客户名1集团简称+客户简称2只显示客户简称
     */
    @ApiModelProperty(value="客户名称显示规则:0只显示客户名1集团简称+客户简称2只显示客户简称")
    private Integer customerNameRule;
    /**
     * 创建订单时显示上次备注0关1开
     */
    @ApiModelProperty(value="创建订单时显示上次备注0关1开")
    private Boolean remarkFlag;
    /**
     * 协议客户商品屏蔽开关：0关1开
     */
    @ApiModelProperty(value="协议客户商品屏蔽开关：0关1开")
    private Boolean skuBlockFlag;
    /**
     * 删除标记
     */
    @ApiModelProperty(value="删除标记")
    private Integer delFlag;
    /**
     * 租户id
     */
    @ApiModelProperty(value="租户id",hidden=true)
    private Long tenantId;

	@ApiModelProperty(value="任务id")
	private Integer jobId;
}
